#!/usr/bin/env bash

echo "=====开始构建vue_didiok_web前端项目====="
echo "=====开始npm install & npm run build vue_didiok_web====="
echo "=====构建比较慢 请稍等====="

#npm install chromedriver@2.40.0 --ignore-scripts
node -v
npm -v
npm config list

# npm cache clean --force # 先暂时注释掉吧，省的速云的前端代码起不来


#npm cache verify
#npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass/

#npm config set registry https://registry.npmmirror.com
#npm config list
#npm i -f node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass --unsafe-perm
npm i -f node-sass --unsafe-perm
#npm install -f --registry=https://registry.npm.taobao.org  --unsafe-perm
npm install -f  --unsafe-perm
#npm i -f
#npm cache clean --force
npm run build

echo "npm构建完成"
